namespace MEA.AE_Data
{
	public abstract class ConfigLiveViewBase : ConfigBase
	{
		public enum ELiveViewSigClass
		{
			edn_dZ20,
			eVolt_Batt,
			ePwr,
			eFact,
			eTrqPrp,
			ePres,
			ePres_hPa,
			eAngleCrS,
			eTemp_Cels,
			eTempCels_100ms,
			eInjMassCyc,
			ePres_Rail,
			eDtyCyc,
			eLengthMm,
			eTrq,
			ePrc,
			eInjMass,
			eCurr,
			eFlConsum_l_h,
			eVolt,
			eOneToOne,
			eInjTime_us,
			eTimeEngOn,
			eEngN,
			eCaSCrS_phiDiff,
			eOneToOneBin,
			eLastSig
		}

		public struct SLiveViewSigClass
		{
			private float coef;

			private float offset;

			private string unit;

			public string Unit
			{
				get
				{
					return unit;
				}
			}

			public void setSigClass(float coef, float offset, string unit)
			{
				this.coef = coef;
				this.offset = offset;
				this.unit = unit;
			}

			public float getVal(float val)
			{
				return val * coef + offset;
			}
		}
	}
}
